package com.itheima.xiancheng.homework.homework6;

public class Cangku {
    private  int count=10;
    private int thCount;
    private boolean flag;


    public Cangku() {
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getThCount() {
        return thCount;
    }

    public void setThCount(int thCount) {
        this.thCount = thCount;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
    public  void put(){
            thCount++;
    }
    public void  take(){
        thCount--;
    }
}
